<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProblemList.aspx.cs" Inherits="Admin_Know_ProblemList" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>知道管理</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />

    <script type="text/javascript" src="../../js/jquery.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                操作提示</h3>
        </div>
        <div class="itemtitle_tect">
            <ul>
                <p>
                    标题：<asp:TextBox ID="txtCaption" runat="server"></asp:TextBox>
                    提问人：<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                    问题状态：<asp:DropDownList ID="dropProblem" runat="server">
                        <asp:ListItem Value="">全部问题</asp:ListItem>
                        <asp:ListItem Value="1">已解决</asp:ListItem>
                        <asp:ListItem Value="0">待解决</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RadioButtonList ID="radlVerify" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Value="1">已审</asp:ListItem>
                        <asp:ListItem Value="0" Selected="True">未审</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:Button ID="btnSubmit" runat="server" Text="查询" OnClick="btnSubmit_Click" CssClass="i_button" />
                </p>
            </ul>
        </div>
        <div class="clr">
        </div>
        <div class="partition">
            <div class="Option">
                <asp:Label ID="Label5" runat="server"><strong>快捷操作</strong></asp:Label>
                <asp:Label ID="Label1" runat="server"><a href="ProblemList.aspx">所有问题</a></asp:Label>
                <asp:Label ID="Label2" runat="server"><a href="ProblemList.aspx?v=1">已解决</a></asp:Label>
                <asp:Label ID="Label3" runat="server"><a href="ProblemList.aspx?v=0">待解决</a></asp:Label>
            </div>
        </div>
        <div class="talbe_border">
            <asp:GridView ID="grdProblem" runat="server" AutoGenerateColumns="False" OnRowDeleting="grdProblem_RowDeleting"
                DataKeyNames="ID" CssClass="talbe_list" GridLines="None">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="标题">
                        <ItemTemplate>
                            <a href="<%=WebUrl %>Know/Detail-<%# Eval("ID") %><%=Rewrite %>" target="_blank">
                                <%# Eval("Caption") %>
                            </a>
                        </ItemTemplate>
                        <ItemStyle CssClass="left2" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="AnswerCount" HeaderText="回答数">
                    <HeaderStyle CssClass="th30" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="是否审核">
                        <ItemTemplate>
                            <%# Eval("Verify").ToString()== "True" ? "已审" : "未审" %>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th30" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="问题状态">
                        <ItemTemplate>
                            <%# Eval("State").ToString()== "True" ? "已结贴" : "未结贴" %>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th30" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="提问时间">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# GetShortDate(Eval("AddDate").ToString()) %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th30" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="UserName" HeaderText="提问人">
                        <HeaderStyle CssClass="th30" />
                    </asp:BoundField>
                    <asp:CommandField ShowDeleteButton="True" HeaderText="操作">
                        <HeaderStyle CssClass="th30" />
                    </asp:CommandField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <asp:Label ID="lblMessage" runat="server" Text="Label" Visible="False"></asp:Label>
            <div class="Paging">
                <p>
                    <uc1:PageNo ID="PageNo1" runat="server" />
                </p>
                <input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />全选
                <asp:Button ID="btnDelete" runat="server" CssClass="i_button" Font-Size="9pt" OnClick="btnDelete_Click"
                    Text="批量删除" OnClientClick="return confirm('你确定要删除吗?')" />
                <asp:Button ID="btnEigible" runat="server" Text="审核通过" CssClass="i_button1" OnClientClick="javascript:return confirm('您确定要让该信息通过审核吗？') "
                    OnClick="btnEigible_Click" />
                <asp:Button ID="btnDisqualification" runat="server" Text="审核未通过" CssClass="i_button1"
                    OnClientClick="javascript:return confirm('您确定不让该信息通过审核吗？')" OnClick="btnDisqualification_Click" />
            </div>
        </div>
    </form>
</body>
</html>
